home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 476-500 / disk_500 / wiconify / wiconify-source.lzh / Source / wMenu.h < prev    next >
C/C++ Source or Header  |  1991-04-25  |  3KB  |  91 lines

  1. /*
  2.  *  WICONIFY    A utility that allows you to iconify any Intuition window
  3.  *              on any screen, and to open WB windows on any screen.
  4.  *
  5.  *  wMenu.h     Include file containing menu ID numbers and other
  6.  *              menu structure information.
  7.  *
  8.  *  Copyright 1990 by Davide P. Cervone, all rights reserved.
  9.  *  You may use this code, provided this copyright notice is kept intact.
  10.  */
  11.  
  12. #define ICON_MENU       0
  13. #define   IM_OPEN         0
  14. #define   IM_CLOSE        1
  15. #define   IM_LOCK         2
  16. #define   IM_CLEANUP      3
  17. #define   IM_LINE1        4
  18. #define   IM_ORGANIZE     5
  19. #define   IM_OPENALL      6
  20. #define   IM_LINE2        7
  21. #define   IM_ABOUT        8
  22. #define   IM_END          9
  23.  
  24. #define SCREEN_MENU     1
  25. #define   SM_TOFRONT      0
  26. #define   SM_TOBACK       1
  27. #define   SM_WBTOFRONT    2
  28. #define   SM_LINE1        3
  29. #define   SM_TOGGLE       4
  30. #define   SM_ICONIFY      5
  31. #define   SM_LINE2        6
  32. #define   SM_NEWCLI       7
  33. #define   SM_MAKEWB       8
  34. #define   SM_OPENWINDOW   9
  35. #define     OW_ON           0
  36. #define     OW_ACTIVESCRN   1
  37. #define     OW_CURRENTWB    2
  38. #define     OW_REALWB       3
  39. #define     OW_LINE         4
  40. #define     OW_AUTORESIZE   5
  41. #define   SM_NEWSCREEN    10
  42. #define     NS_DEPTH        0
  43. #define     NS_DEPTH1       1
  44. #define     NS_DEPTH2       2
  45. #define     NS_DEPTH3       3
  46. #define     NS_DEPTH4       4
  47. #define     NS_DEPTH5       5
  48. #define     NS_TYPE         6
  49. #define     NS_HIRES        7
  50. #define     NS_LORES        8
  51. #define     NS_INTERLACE    9
  52. #define     NS_HAM          10
  53. #define   SM_CLOSESCREEN  11
  54.  
  55. #define CHARW       8
  56. #define CHARH       8
  57.  
  58. #define MAX_ICON_LEN    8       /* size of item "Organize" */
  59. #define MAX_SCRN_LEN    12      /* size of item "Toggle Title" */
  60. #define MAX_OPEN_LEN    15      /* size of "  Active Screen" */
  61. #define MAX_NSCR_LEN    11      /* size of "  Interlace" */
  62. #define NEWSCREEN_LEN   10      /* size of item "New Screen" */
  63.  
  64. #define DISABLED        -ITEMENABLED
  65. #define MX(x)           (1<<x)
  66.  
  67. #define MENUH           (CHARH+2)
  68. #define MENUW(n)        (n*CHARW+COMMWIDTH+3*CHARW)
  69. #define MENUID(m,i,s)   (SHIFTMENU(m)|SHIFTITEM(i)|SHIFTSUB(s)) 
  70.  
  71. #define NEXT(n)         &MENU_NAME[n+1].Item
  72.  
  73. #define MENUTEXT(x)     {2,0, JAM1, 6,1, &wFont, x, NULL}
  74. #define CHKTEXT(x)      {2,0, JAM1, CHECKWIDTH+4,1, &wFont, x, NULL}
  75. #define SUBTEXT(x)      {2,0, JAM1, 6,1, &wFont, x, NULL}
  76. #define DEPTEXT(x)      {2,0, JAM1, 8,1, &wFont, x, NULL}
  77.  
  78. #define TOTAL_MENUH     (16*MENUH)
  79.  
  80.  
  81. /*
  82.  *  Menus will all be Text type, so they each contain their
  83.  *  own IntuiTexts...
  84.  */
  85.  
  86. struct wMenuItem
  87. {
  88.    struct MenuItem Item;
  89.    struct IntuiText IText;
  90. };
  91.